#ifndef PROTREEITEM_H
#define PROTREEITEM_H

#include <QTreeWidgetItem>
class ProTreeItem : public QTreeWidgetItem
{
public:
    ProTreeItem(QTreeWidget *view, const QString &name,const QString &path, int type = Type);
    ProTreeItem(QTreeWidgetItem *parent, const QString &name,const QString &path, QTreeWidgetItem* root,int type = Type);
    void SetNextItem(ProTreeItem * next_item);
    void SetPreItem(ProTreeItem * pre_item);
    const QString GetPath();
    ProTreeItem * GetPreItem();
    ProTreeItem * GetNextItem();
    ProTreeItem * GetRoot();
    ProTreeItem * GetLastPicChild();
    ProTreeItem * GetFirstPicChild();
private:
    QTreeWidgetItem * _next_item;
    QTreeWidgetItem * _pre_item;
    QTreeWidgetItem * _root;
    const QString _name;
    const QString _path;
};

#endif // PROTREEITEM_H
